<?php
namespace Admin\Model;

use Think\Model;
class AuthGroupaccessModel extends Model {
protected $tableName = 'auth_group_access';


function _initialize() {
    $this->auth_group_access_Model = M("auth_group_access");

}
    public function user($id){

       $group_id= $this->auth_group_access_Model->where(array('uid'=>$id))->field('group_id')->select();

        return $group_id;
    }

}